package com.starlink.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.starlink.common.domain.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zhanghong
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel("商城购物车订单响应模型")
public class ShoppingCartOrderVO extends BaseVO implements Serializable {
    @ApiModelProperty("购物车ID")
    private Long shoppingCartId;
    @ApiModelProperty("用户ID")
    private Long userId;
    @ApiModelProperty("订单状态 ")
    private String status;
    @ApiModelProperty("订单编号")
    private String orderNum;
    @ApiModelProperty("微信订单号")
    private String wxOrderNum;
    @ApiModelProperty("总价")
    private BigDecimal totalAmount;
    @ApiModelProperty("运费")
    private BigDecimal freight;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("超时时间")
    private Date timeout;
    @ApiModelProperty("备注")
    private String comments;
    @ApiModelProperty("收货地址ID")
    private Long addressId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("取消时间")
    private Date cancelTime;
}
